home *** CD-ROM | disk | FTP | other *** search
- global theFileCode, sndPath
-
- on updateSoundButton
- if getComment() <> #none then
- set the visible of sprite 14 to 1
- else
- sound stop 2
- set the visible of sprite 14 to 0
- end if
- end
-
- on sayComment
- set theSound to getComment()
- put theSound && getPortraitCast(theFileCode)
- if theSound <> #none then
- sound playFile 2, sndPath & theSound
- end if
- end
-
- on getComment
- set portraitPict to getPortraitCast(theFileCode)
- set commentList to [1: 1]
- addProp(commentList, "p1b1-000.pic", "VO86.aif")
- addProp(commentList, "p2b1-000.pic", "VO86.aif")
- addProp(commentList, "p3b1-000.pic", "VO86.aif")
- addProp(commentList, "p4b1-000.pic", "VO86.aif")
- addProp(commentList, "p1n1-000.pic", "VO86.aif")
- addProp(commentList, "p2n1-000.pic", "VO86.aif")
- addProp(commentList, "p3n1-000.pic", "VO86.aif")
- addProp(commentList, "p4n1-000.pic", "VO86.aif")
- addProp(commentList, "p3b1-0B0.pic", "VO87.aif")
- addProp(commentList, "p3b1-0B1.pic", "VO87.aif")
- addProp(commentList, "p3n1-0B0.pic", "VO87.aif")
- addProp(commentList, "p3n1-0B1.pic", "VO87.aif")
- addProp(commentList, "p3b1-0A0.pic", "VO87.aif")
- addProp(commentList, "p3b1-0A1.pic", "VO87.aif")
- addProp(commentList, "p1n1-0A0.pic", "VO88.aif")
- addProp(commentList, "p2n1-0A0.pic", "VO88.aif")
- addProp(commentList, "p4n1-0A0.pic", "VO88.aif")
- addProp(commentList, "p1n1-100.pic", "VO89.aif")
- addProp(commentList, "p1n1-101.pic", "VO89.aif")
- addProp(commentList, "p2n1-100.pic", "VO89.aif")
- addProp(commentList, "p2n1-101.pic", "VO89.aif")
- addProp(commentList, "p3n1-100.pic", "VO89.aif")
- addProp(commentList, "p3n1-101.pic", "VO89.aif")
- addProp(commentList, "p4n1-100.pic", "VO89.aif")
- addProp(commentList, "p5n1-101.pic", "VO89.aif")
- addProp(commentList, "p1b1-100.pic", "VO89.aif")
- addProp(commentList, "p1b1-101.pic", "VO89.aif")
- addProp(commentList, "p2b1-100.pic", "VO89.aif")
- addProp(commentList, "p2b1-101.pic", "VO89.aif")
- addProp(commentList, "p3b1-100.pic", "VO89.aif")
- addProp(commentList, "p3b1-101.pic", "VO89.aif")
- addProp(commentList, "p4b1-100.pic", "VO89.aif")
- addProp(commentList, "p5b1-101.pic", "VO89.aif")
- set taggedSound to getaProp(commentList, portraitPict)
- if voidp(taggedSound) then
- return #none
- else
- return taggedSound
- end if
- end
-